//
//  GoodsDetailWebViewController.m
//  much
//
//  Created by weijunjie on 2019/1/9.
//  Copyright © 2019年 iOS. All rights reserved.
//

#import "GoodsDetailWebViewController.h"

@interface GoodsDetailWebViewController ()
@property (nonatomic, strong) UIWebView *webView;
@end

@implementation GoodsDetailWebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationView.hidden = YES;
}

- (UIWebView *)webView {
    if (!_webView) {
        _webView = [[UIWebView alloc] init];
        [self.view addSubview:_webView];
        [_webView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.equalTo(self.view);
        }];
    }
    return _webView;
}

- (void)setSpuSid:(NSString *)spuSid {
    _spuSid = [spuSid copy];
    // 加载底部商品详情
    NSString *urlStr = [NSString stringWithFormat:@"http://m.aurora.yuntujk.net:30003/goods-detail.html?sid=%@",spuSid];
    [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:urlStr]]];
}


@end
